<html>
<head><meta charset="utf-8"><title>bootstrap fails to assemble stage 1 compiler · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html">bootstrap fails to assemble stage 1 compiler</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220153120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220153120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220153120">(Dec 16 2020 at 18:23)</a>:</h4>
<p>Not sure why I'm getting this error :/ I'm just running <code>x.py build</code></p>
<div class="codehilite"><pre><span></span><code>Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
thread &#39;main&#39; panicked at &#39;src.symlink_metadata() failed with No such file or directory (os error 2)&#39;, src/bootstrap/lib.rs:1216:24
</code></pre></div>
<p>I did run <code>rm -r build/$TARGET/stage0-rustc</code> at some point, maybe it's getting confused?</p>
<p>backtrace:</p>
<div class="codehilite"><pre><span></span><code>stack backtrace:
   0: rust_begin_unwind
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/std/src/panicking.rs:495:5
   1: std::panicking::begin_panic_fmt
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/std/src/panicking.rs:437:5
   2: bootstrap::Build::copy
             at ./src/bootstrap/lib.rs:1216:24
   3: &lt;bootstrap::compile::Assemble as bootstrap::builder::Step&gt;::run
             at ./src/bootstrap/compile.rs:990:13
   4: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:1474:23
   5: bootstrap::builder::Builder::compiler
             at ./src/bootstrap/builder.rs:578:9
   6: &lt;bootstrap::compile::Std as bootstrap::builder::Step&gt;::make_run
             at ./src/bootstrap/compile.rs:48:23
   7: bootstrap::builder::StepDescription::maybe_run
             at ./src/bootstrap/builder.rs:179:13
   8: bootstrap::builder::StepDescription::run
             at ./src/bootstrap/builder.rs:200:25
   9: bootstrap::builder::Builder::run_step_descriptions
             at ./src/bootstrap/builder.rs:570:9
  10: bootstrap::builder::Builder::execute_cli
             at ./src/bootstrap/builder.rs:561:9
  11: bootstrap::Build::build
             at ./src/bootstrap/lib.rs:509:13
  12: bootstrap::main
             at ./src/bootstrap/bin/main.rs:30:5
  13: core::ops::function::FnOnce::call_once
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/core/src/ops/function.rs:227:5
</code></pre></div>



<a name="220153212"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220153212" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220153212">(Dec 16 2020 at 18:24)</a>:</h4>
<p>it's there now though:</p>
<div class="codehilite"><pre><span></span><code>$ ls build/x86_64-unknown-linux-gnu/stage0-rustc/
CACHEDIR.TAG  release  x86_64-unknown-linux-gnu
</code></pre></div>



<a name="220153488"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220153488" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220153488">(Dec 16 2020 at 18:27)</a>:</h4>
<p>this is copying <code>llvm-dwp</code> so I expect it's likely a new bug</p>



<a name="220153949"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220153949" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220153949">(Dec 16 2020 at 18:30)</a>:</h4>
<p>as a workaround <code>touch build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-dwp</code> works</p>



<a name="220154069"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220154069" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220154069">(Dec 16 2020 at 18:31)</a>:</h4>
<p>I'll open an issue</p>



<a name="220154471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220154471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220154471">(Dec 16 2020 at 18:34)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/80086">https://github.com/rust-lang/rust/issues/80086</a></p>



<a name="220154707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220154707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220154707">(Dec 16 2020 at 18:36)</a>:</h4>
<p>think that the use of llvm-dwp is new with this <a href="https://github.com/rust-lang/rust/pull/77117">https://github.com/rust-lang/rust/pull/77117</a> merged 3 hours ago</p>



<a name="220158838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220158838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220158838">(Dec 16 2020 at 19:10)</a>:</h4>
<p>I’m surprised that the downloaded LLVM doesn’t build llvm-dwp given that a local build of LLVM will - if that is the problem, I suspect that the solution will be to include llvm-dwp in the downloaded LLVM. I won’t get a chance to look into this more thoroughly until tomorrow.</p>



<a name="220158875"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220158875" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220158875">(Dec 16 2020 at 19:10)</a>:</h4>
<p>sounds good :) I bet what's happening is that llvm-dwp is being <em>built</em> but not uploaded to s3</p>



<a name="220158905"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220158905" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220158905">(Dec 16 2020 at 19:11)</a>:</h4>
<p>yeah should be trivial to add</p>



<a name="220158928"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220158928" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220158928">(Dec 16 2020 at 19:11)</a>:</h4>
<p>I won't get a chance to for a bit though. happy to r+ a pr though</p>



<a name="220159302"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220159302" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220159302">(Dec 16 2020 at 19:15)</a>:</h4>
<p>Working on one now, will be up shortly</p>



<a name="220159698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220159698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220159698">(Dec 16 2020 at 19:18)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/80087">#80087</a></p>



<a name="220160004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220160004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220160004">(Dec 16 2020 at 19:21)</a>:</h4>
<p><span class="user-mention" data-user-id="116107">@davidtwco</span> just to confirm - dwp is not necessary for rustc to run, right? in some sense this is just a bootstrap bug for expecting it to exist?</p>



<a name="220160033"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220160033" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220160033">(Dec 16 2020 at 19:21)</a>:</h4>
<p>That’s right</p>



<a name="220160055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220160055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220160055">(Dec 16 2020 at 19:21)</a>:</h4>
<p>It’s only invoked by rustc if you are using Split DWARF.</p>



<a name="220160212"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220160212" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220160212">(Dec 16 2020 at 19:22)</a>:</h4>
<p>So in some sense it is necessary for rustc but not always.</p>



<a name="220160242"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/bootstrap%20fails%20to%20assemble%20stage%201%20compiler/near/220160242" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/bootstrap.20fails.20to.20assemble.20stage.201.20compiler.html#220160242">(Dec 16 2020 at 19:22)</a>:</h4>
<p>ok great</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>